package com.jianguozh.difs.support.api.ops.dto;

import com.jianguozh.difs.framework.validator.EnumValid;
import com.jianguozh.difs.framework.validator.group.UpdateGroup;
import com.jianguozh.difs.support.service.constant.enums.ClientTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * appId dto
 *
 * @author hanrs
 * @email 4076130@qq.com
 * @since 2022/3/28 9:05
 */
@Data
public class ClientDto {

    /**
     * id
     */
    @NotBlank(groups = {UpdateGroup.class}, message = "id不能为空")
    private String id;

    /**
     * 应用类型(web:WEB;app:APP:h5:H5)
     */
    @EnumValid(message = "应用类型不合法", ignoreEmpty = false)
    private ClientTypeEnum clientType;

    /**
     * 应用ID
     */
    @NotBlank(message = "应用ID不能为空")
    private String appId;

    /**
     * 应用秘钥
     */
    private String appSecret;

    /**
     * 名称
     */
    @NotBlank(message = "应用名称不能为空")
    private String clientName;

    /**
     * 描述
     */
    private String description;
}
